package com.yyds.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @date 2022/10/12
 * @desc
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudentBo {

    @ExcelProperty(value = "学员编号")
    @ColumnWidth(value = 20)
    private Integer id;
    @ExcelProperty(value = "学员姓名")
    private String name;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "生日")
    @DateTimeFormat("yyyy-MM-dd")
    private Date birthday;
}
